#ifndef _MENUITEM_H
#define _MENUITEM_H

#include "CTexture.h"

class CMenuItem
{
public:
	//--------------------------------------------//
	//	Constructor and Destructor for this class //
	//--------------------------------------------//
	CMenuItem(CTexture *image , float Xpos , float Ypos , int width , int height);
	~CMenuItem();

	//--------------------------------//
	//	Public methods for this class //
	//--------------------------------//
	void		SetTexture		( CTexture *image );
	void		SetPosition		( float Xpos , float Ypos );
	void		SetWidth		( int newWidth );
	void		SetHeight		( int newHeight );
	void		SetActive		( bool isActive );

	CTexture*	GetTexture		( ) const;
	float		GetXpos			( ) ;
	float		GetYpos			( ) ;
	int			GetWidth		( ) ;
	int			GetHeight		( ) ;

	void		Move			( float x , float y );
	bool		IsPicking		( float x , float y );

	void		Release			( );

private:
	//---------------------------------//
	//	Private methods for this class //
	//---------------------------------//
	CTexture	*m_Image;
	float		 m_Xpos;
	float		 m_Ypos;

	int			 m_nWidth;
	int			 m_nHeight;

	bool		 m_IsActive;
};

#endif